package cn.bsb.dao;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import cn.bsb.pojo.like;

public interface LikeMapper {
	
	@Insert("insert into `like`(dev_id,article_id) VALUES(#{vid},#{aid})")
	public int addLike(@Param("vid")Long vid,@Param("aid")Long aid);
	
	@Select("SELECT * FROM `like` WHERE dev_id=#{vid} AND article_id=#{aid}")
	public like getLike(@Param("vid")Long vid,@Param("aid")Long aid);

}
